#ifndef _NET_IREACTOR_H_
#define _NET_IREACTOR_H_

#include "common/common.h"

namespace net {

enum EventType {
    Read = 1,
    Write = 2,
};

}
namespace net {

class ITimer;
class IEvent;

class IReactor {
public:
    virtual void Stop() = 0;
    virtual void Dispatch() = 0;
    virtual void RemoveEvent(IEvent* event) = 0;
    virtual void AddEvent(IEvent* event, uint32_t event_type) = 0;	
};

}
#endif
